#include <iostream>
#include <functional>
#include <memory>
#include <vector>
#include <list>
#include <string>
#include <queue>

using namespace std;

class Add
{
public:
    Add()
    {
        _num++;
        _sum += _num;
    }

public:
    static int _num;
    static int _sum;
};
int Add::_num = 0;
int Add::_sum = 0;


int main()
{
    new Add[5];
    cout << Add::_sum << endl;

    return 0;
}




